package com.nf.practice.timetest;

import org.junit.jupiter.api.Test;

import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeConvert {

    @Test
    public void test() {
        Date applyTime = new Date(Long.valueOf("1645066563000"));
//        Date applyTime = new Date(Long.valueOf(null));
        SimpleDateFormat sdr = new SimpleDateFormat("yyyyMMdd");
        String s = sdr.format(applyTime);
        System.out.println(s);
    }

}
